/*
 *  lyricsgetter.c
 *  LittleLyrics
 *
 *  Created by Li Qiang on 7/22/07.
 *  Copyright 2007 xuecs.com. All rights reserved.
 *
 */

#include "lyricsgetter.h"

#include <stdio.h>

/*
 * get file content as 
 */
char* getFileByte(const char* filename){
	FILE* fp=fopen(filename,"r");
	char* buffer=(char*)malloc(1024*20);
	char ch;
	char* next=buffer;
	while( (ch=fgetc(fp))!=NULL ){
		*next=ch;
		next++;
	}
	*next='\0';
	return buffer;
}